/*
 * Copyright 2010 Groupware.cc All right reserved. This software is the
 * confidential and proprietary information of Groupware.cc ("Confidential
 * Information"). You shall not disclose such Confidential Information and shall
 * use it only in accordance with the terms of the license agreement you entered
 * into with Groupware.cc.
 */
package com.rome.syncml.util;

import java.io.IOException;

import org.codehaus.jackson.JsonParseException;
import org.codehaus.jackson.map.JsonMappingException;
import org.codehaus.jackson.map.ObjectMapper;

import com.rome.syncml.bean.CallLog;
import com.rome.syncml.bean.SMS;

/**
 * 类CallLogUtil.java的实现描述：TODO 类实现描述 
 * @author afei 2011-11-26 下午01:50:53
 */
public class CallLogUtil {

    public static CallLog parseCallLog(String content){
        ObjectMapper mapper = new ObjectMapper();
        try {
            CallLog log = mapper.readValue(content, CallLog.class);
            return log;
        } catch (JsonParseException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        } catch (JsonMappingException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        return null;
    }
    
}
